package com.matrix.order.infrastructure.persistence.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 有点甜
 * @since 2025/7/27
 */
@Data
@TableName("t_order_item")
public class OrderItemPO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long orderId;
    private Long productId;
    private String productName;
    private String productImageUrl;
    private String specs;
    private BigDecimal price;
    private Integer quantity;
    private Boolean added;
    private Integer status;
    private Long paymentId;
}
